package com.nineclock.common.oss;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss") // 相当于自动为成员变量赋值 --> @Value(aliyun.oss.endpoint)
@PropertySource(value = "classpath:oss.properties" , encoding = "UTF-8") //加载oss.properties配置文件
public class OssProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String host;

}